#ifndef __UM_LOG_H__
#define __UM_LOG_H__

#define TARGET "umStorare"
#define DEBUGLEVEL 0
#define PRINTTIME gPrintTime

#ifndef TARGET
#define LOGI(fmt,arg...) debug(3, "umStorare", fmt,##arg)
#define LOGD(fmt,arg...) debug(4, "umStorare", fmt,##arg)
#define LOGW(fmt,arg...) debug(2, "umStorare", fmt,##arg)
#define LOGE(fmt,arg...) debug(1, "umStorare", fmt,##arg)
#else
#define LOGI(fmt,arg...) debug(3, TARGET, DEBUGLEVEL, PRINTTIME, "[%s.%d]"fmt,__FUNCTION__,__LINE__,##arg)
#define LOGD(fmt,arg...) debug(4, TARGET, DEBUGLEVEL, PRINTTIME, "[%s.%d]"fmt,__FUNCTION__,__LINE__,##arg)
#define LOGW(fmt,arg...) debug(2, TARGET, DEBUGLEVEL, PRINTTIME, "[%s.%d]"fmt,__FUNCTION__,__LINE__,##arg)
#define LOGE(fmt,arg...) debug(1, TARGET, DEBUGLEVEL, PRINTTIME, "[%s.%d]"fmt,__FUNCTION__,__LINE__,##arg)
#define LOGS(fmt,arg...) debug(100, TARGET, DEBUGLEVEL, PRINTTIME, "[%s.%d]"fmt"\n",__FUNCTION__,__LINE__,##arg)
#define LOGT(fmt,arg...) debugproc(100, TARGET, DEBUGLEVEL, 0, fmt,##arg)
#endif


extern UM_S32 gPrintTime;
#endif

